//
//  Httpd.h
//  aPlanner
//
//  Created by Daniel Braun on 01/09/07.
//  Copyright 2007 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>


@protocol HttpdInformation
//- (BOOL) isWap;
@end

@protocol HttpdDelegate
- (id) contentForPath:(NSString *)s parameters:(NSArray *)p
	    variables:(NSDictionary *)v info:(id <HttpdInformation>) br;
@end


@interface Httpd : NSObject <HttpdDelegate> {
	NSFileHandle *httpdListen;
	NSMutableArray *contextes;
	IBOutlet id delegate;
}


- (id) initWithPort:(unsigned short) port;

- (void) connectionReceived:(NSNotification *)aNotification;

- (void) setDelegate:(id) d;
- (id) delegate;
- (id) handler;

+ (Httpd *) currentHttpd;
+ (Httpd *) currentHttpdDelegate;


@end

